import request from '@/utils/request'

// 查询列表信息
export const getMonthlyCapacityListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/monthly/capacity/set/list', { params })

// 生成初始化数据列表
export const getMonthlyCapacityInitApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/monthly/capacity/set/init', { params })

// 保存
export const saveMonthlyCapacityApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/monthly/capacity/set/add', data)

// 导入月度数据
export const importMonthlyCapacityApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/monthly/capacity/set/import', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
